import React from 'react'
import useStore from '../store/index'
import { observer } from 'mobx-react-lite'

function Bar() {
    const { taskStore } = useStore()
    return (
        <div>
            <ul>
                {
                    taskStore.taskList.map(item=>{
                        return <li>{item}</li>
                    })
                }
            </ul>
        </div>
    )
}
export default observer(Bar)